package com.changgou.web.item.feign;

import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author zhengjd
 * @date 2020/5/13 23:30
 */
@FeignClient(name = "item")
@RequestMapping("page")
public interface PageFeign {

    /**
     * 根据spuId生成静态页面
     * @param id
     * @return
     */
    @RequestMapping("createHtml/{id}")
    Result createHtml(@PathVariable(name = "id") Long id);
}
